#pragma once
#include <graphic\Drawable.h>
#include <graphic\Animation.h>
#include <main\IUpdateable.h>

struct AnimatedDrawable : public Drawable {

AnimatedDrawable(const std::string& atlas, Entity* entity, int w, int h); 

void setAnimationSpeed(float time) {
	animationSpeed = time;
}

void update();
void moveAnimation();

Animation& getAnimation() { return animation; }


private:
	Animation animation;
	float animationSpeed;
	float currentTime;
};